package com.app.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 投诉建议
 * </p>
 *
 * @author yoominic
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_complaint")
public class Complaint implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 投诉建议ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * tb_user的id
     */
    private Integer userId;

    /**
     * 投诉内容
     */
    private String complaintContent;

    /**
     * 状态 1正常 0作废
     */
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userPhone;


}
